home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / anthelp.xml < prev    next >
Text File  |  2002-08-29  |  2KB  |  54 lines

  1. <search function="anthelp">
  2.   <name>Ant Task help pages</name>
  3.   <description>
  4.     Display Ant Task help pages.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td><nobr>/core [default]</nobr></td><td> - </td><td>Lookup help page for a core task</td></tr>
  8.       <tr><td><nobr>/optional</nobr></td><td> - </td><td>Lookup help page for an optional task</td></tr>
  9.     </table>
  10.     <div class="helpboxDescLabels">Examples:</div>
  11.     <table class="helpboxDescTable">
  12.       <tr><td>anthelp copyfile</td></tr>
  13.       <tr><td>anthelp /opt ftp</td></tr>
  14.     </table>
  15.   </description>
  16.   <link>http://jakarta.apache.org/ant/manual/</link>
  17.   <category>Computers</category>
  18.   <contributor>Brent Beardsley</contributor>
  19.  
  20.   <script><![CDATA[
  21.     function anthelp(q)
  22.     {
  23.       if( nullArgs("anthelp", q) )
  24.         return false;
  25.  
  26.       var args = parseArgs(q,"core, optional");
  27.       var cmd = args.q.toLowerCase();
  28.       var cmdDir = "CoreTasks";
  29.       var cmdList = "coretasklist";
  30.       if (args.switches.length > 1) {
  31.     nullArgs("anthelp", "?");
  32.     return false;
  33.       }
  34.       if( args.switches.length == 1 && args.switches[0].name == "optional") {
  35.         cmdDir = "OptionalTasks";
  36.     cmdList = "optionaltasklist";
  37.       }
  38.  
  39.       if (cmd.length > 0) {
  40.         openSearchWindow("http://jakarta.apache.org/ant/manual/"+cmdDir+"/"+cmd+".html");
  41.       } else {
  42.         openSearchWindow("http://jakarta.apache.org/ant/manual/"+cmdList+".html");
  43.       }
  44.     }
  45.     ]]>
  46.   </script>
  47.  
  48.   <copyright>
  49.     Copyright (c) 2002 David Bau
  50.     Distributed under the terms of the
  51.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  52.   </copyright>
  53. </search>
  54.